import { createApp } from 'vue';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import * as ElPlusIcons from '@element-plus/icons-vue';
import App from './App.vue';
import router from './router';
import store from './store';

const app = createApp(App);

app.use(store)
  .use(router)
  .use(ElementPlus)
  .mount('#app');

Object.keys(ElPlusIcons)
  .forEach((key) => {
    app.component(key, ElPlusIcons[key as keyof typeof ElPlusIcons]);
  });
